package main;


import main.com.pojo.Text;
import main.com.service.ElasticService;
import main.com.service.TextService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Main extends SpringBootServletInitializer {


    public static void main(String[] args) throws Exception{
        SpringApplication.run(Main.class);
        //ElasticService service = app.getBean(ElasticService.class);

        //项目第一次时，首先要创建
        //service.createIndex();
        //项目第一次时，首先要将数据加入
       //service.addAll();

        //app.close();
    }
}